package com.personal.modules.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.personal.modules.sys.dao.TSysRoleDao;
import com.personal.modules.sys.entity.TSysRoleEntity;
import com.personal.modules.sys.service.TSysRoleService;



@Service("tSysRoleService")
public class TSysRoleServiceImpl implements TSysRoleService {
	@Autowired
	private TSysRoleDao tSysRoleDao;
	
	@Override
	public TSysRoleEntity queryObject(Long roleId){
		return tSysRoleDao.queryObject(roleId);
	}
	
	@Override
	public List<TSysRoleEntity> queryList(Map<String, Object> map){
		return tSysRoleDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tSysRoleDao.queryTotal(map);
	}
	
	@Override
	public void save(TSysRoleEntity tSysRole){
		tSysRoleDao.save(tSysRole);
	}
	
	@Override
	public void update(TSysRoleEntity tSysRole){
		tSysRoleDao.update(tSysRole);
	}
	
	@Override
	public void delete(Long roleId){
		tSysRoleDao.delete(roleId);
	}
	
	@Override
	public void deleteBatch(Long[] roleIds){
		tSysRoleDao.deleteBatch(roleIds);
	}
	
}
